package cn.edu.scau.cmi.suwenpeng.chapter06;

public class Pillar6_9 {
	Geometry bottom;
 double height;
 Pillar6_9 (Geometry bottom,double height){
	 this.bottom=bottom;
	 this.height=height;
 }
 public double getVolume() {
	 return bottom.getArea()*height;
 }
}
